<div class="febs-container" id="febs-post">
    <div class="febs-body layui-fluid" lay-title="岗位管理">
        <div class="febs-body-search">
            <form class="layui-form layui-table-form" lay-filter="post-table-form" id="post-table-form">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-form-item">
                            <div class="layui-inline" id="post-tenant"
                                 th:classappend="${hasHeadCompanyRole } ? '' : 'febs-hide'">
                                <label class="layui-form-label layui-form-label-sm">公司名称</label>
                                <div class="layui-input-inline" >
                                    <select name="tenantId" id="tenantId" lay-search="" >
                                        <option th:each="item:${tenantList }"
                                                th:value="${item.tenantId}" th:text="${item.tenantName}"
                                                th:selected="${tenantId ==item.tenantId}">
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">岗位编号</label>
                                <div class="layui-input-inline" style="width:190px;">
                                    <input type="text" name="postCode" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">岗位名称</label>
                                <div class="layui-input-inline" style="width:190px;">
                                    <input type="text" name="postName" autocomplete="off" class="layui-input">
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label layui-form-label-sm">状态</label>
                                <div class="layui-input-inline">
                                    <select name="status" lay-search="">
                                        <option value="">请选择</option>
                                        <option value="0">禁用</option>
                                        <option value="1" selected>启用</option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <div id="query" class="layui-btn">
                                    <em class="layui-icon">&#xe615;</em> 查询
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </form>
        </div>

        <div class="febs-table-full">
            <table lay-filter="postTable" lay-data="{id: 'postTable'}"></table>
        </div>

    </div>
    <script type="text/html" id="post-toolbar">
        <div lay-event="add" shiro:hasPermission="post:add" class="layui-btn layui-btn-sm">
            <em class="layui-icon">&#xe654;</em> 新增
        </div>
    </script>
    <script type="text/html" id="post-option">
        <span shiro:lacksPermission="post:update,post:delete">
        <span class="layui-badge-dot febs-bg-orange"></span> 无权限
    </span>
        <button type="button" class="layui-btn layui-btn-xs layui-btn-primary layui-border-orange" lay-event="edit" shiro:hasPermission="post:update">
            <i class="layui-icon layui-icon-edit"></i>
            编辑
        </button>
        <button type="button" class="layui-btn layui-btn-xs layui-btn-primary layui-border-red" lay-event="del" shiro:hasPermission="post:delete">
            <i class="layui-icon layui-icon-delete"></i>
            删除
        </button>
    </script>
    <script type="text/html" id="status-bar">
        <input type="checkbox" name="postStatus" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用"
               lay-filter="postStatus" lay-event="statusEvent" {{ d.status== '1' ? 'checked' : '' }} />
    </script>
    <script data-th-inline="javascript">
        var hasHeadCompanyRole = [[${hasHeadCompanyRole}]];
        var tenantList = [[${tenantList }]];
    </script>

    <script th:src="@{/febs/js/system/post/post.js}"></script>
</div>
